package com.doyens.mapper;

import com.doyens.pojo.Schedule;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ScheduleMapper {

    @Select("select * from schedule where id in (select scheduleId from stu_schedule where sid=#{id})")
    List<Schedule> findById(Integer id);

}
